<?php
class InfoViewForm extends Form{
	function InfoViewForm()
	{
		Form::Form('InfoViewForm');
	}
	
	function draw()
	{
		global $display;
			
		$InfoContent	=	stripslashes(@CGlobal::$configs['Info_'.AZNet::$page['name']]['conf_val']);
		
		$display->add("url_home",WEB_DIR);
		$display->add("title",AZNet::$page['title']);
		$display->add("url",Url::build_current());
		
		if(User::is_admin())
		{
			$display->add("edit",Url::build_current(array('cmd'=>'update_'.AZNet::$page['name'])));
		}
		
		$display->add("text", html_entity_decode($InfoContent, ENT_QUOTES, "UTF-8"));
		
		$this->beginForm();
		$display->output("InfoView");
		$this->endForm();
	}
}
?>